package com.axxc.jpa.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.axxc.jpa.out.Developer;
/**
 * 
 * @ClassName: Article 
 * @Description: 引用Redis缓存
 * @author xxc
 * @date 2018年8月13日 下午4:21:46 
 * @see {@link https://www.concretepage.com/spring-boot/spring-boot-redis-cache	}
 */
@Entity
@Table(name = "articles")
public class ArticleEntity extends Developer {
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "article_id")
	private long articleId;
	@Column(name = "title")
	private String title;
	@Column(name = "category")
	private String category;

	public long getArticleId() {
		return articleId;
	}

	public void setArticleId(long articleId) {
		this.articleId = articleId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}
}